<?php
//======================================================================================
//
// Function: Run a SQL statement against some database
//
// NOTE: config.php must have been include before you include this!
//
// Programmer: JKJ
// Date : 2022-01-06
//
// ------------------------------------------------------------------------------------------
// One year since the crazy fvcking Trump supporters tried to overcome US democracy.
// fvck TRUMP AND ALL HIS SUPPORTERS AND DF AND NY BOGERLIGE AND ALL RIGHT WING SHITHEADS!!!!
// ------------------------------------------------------------------------------------------
//
// Copyright Reeft A/S (c) - 2021
//======================================================================================
if ( $DFT_DATABASE_TO_USE == '*MYSQL') {
$data = mysqli_query( $conn,$sql);
$current_elm = mysqli_num_rows($data);
}
else
{
$result = $file_db->prepare( $sql );
$result->execute();
$current_elm = $result->rowCount();
$data = $result->fetchAll();
}
?>